package ch.fusun.baron.client.rmi;

import ch.fusun.baron.core.command.GameCommand;
import ch.fusun.baron.core.rmi.User;

/**
 * The client service
 */
public interface ClientService {

	/**
	 * @param host
	 *            The host URL
	 * @return Connection success
	 */
	public boolean connectToServer(String host);

	/**
	 * @param user
	 *            The user to create
	 */
	public void createUser(User user);

	/**
	 * @param name
	 *            The name
	 * @param password
	 *            The password
	 */
	public void login(String name, String password);

	/**
	 * @param command
	 *            The command to execute
	 */
	public void execute(GameCommand command);

	/**
	 * @return The current user
	 */
	User getUser();
}
